/*
 * Helstius--Basic chemistry application
 * This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 * Copyright 2012 Jaked122
 */
package org.helstius.chem;

public class Element {
	private float weight;
	private int number;
	private int valence;
	private int[] oxidation;
	private String name;
	public static Element Florine = new Element("Florine", 9, 17f, 7,
			new int[] { -1 });
	public static Element Hydrogen = new Element("Hydrogen", 1, 1.008f, 1,
			new int[] { -1, 1 });
	public static Element Carbon = new Element("Carbon", 6, 12f, 4, new int[] {
			4, -4 });
	public static Element Aluminum = new Element("Aluminum", 13, 26.98f, 3,
			new int[] { 3 });
	public static Element Copper = new Element("Copper", 29, 63.55f, 0,
			new int[] { 1, 2, 0 });
	public static Element Chlorine = new Element("Chlorine", 17, 35.45f, 7,
			new int[] { -1, 1, 3, 5, 7 });
	public static Element Iodine = new Element("Iodine", 53, 126.90f, 7,
			new int[] { -1, 1, 3, 5, 7 });

	public String getname() {
		return name;
	}

	public float getWeight() {
		return weight;
	}

	public int[] getOxidation() {
		return oxidation;
	}

	public int getAtomicNumber() {
		return number;
	}

	public int getValence() {
		return valence;
	}

	public Element(String name, int atomicnumber, float weight, int valence,
			int[] ox) {
		this.weight = weight;
		this.name = name;
		this.valence = valence;
		oxidation = ox;
	}
}
